package com.dede.test;

import android.Manifest;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.dede.mypermission.MyPermission;

/**
 * @author hsh
 * @date 2017/8/23 10:05.
 * @doc
 */
public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        MyPermission.Companion.with(this)
                .onGranted(permission -> null)
                .onDenied(permission -> null)
                .request(Manifest.permission.READ_EXTERNAL_STORAGE);
    }
}
